package com.example.mappers;

import com.example.data.attendance.AttendanceDO;
import org.springframework.jdbc.core.RowMapper;

import com.example.data.attendance.Attendance;
import java.sql.ResultSet;
import java.sql.SQLException;
public class AttendanceRowMapper implements RowMapper<Attendance> {
    @Override
    public Attendance mapRow(ResultSet rs,int i) throws SQLException {
        Attendance attendanceDo = new AttendanceDO();

        attendanceDo.setAttendanceID(rs.getLong("attendanceId"));
        attendanceDo.setEmpID(rs.getLong("empId"));
        attendanceDo.setClockTime(rs.getTime("clockTime"));


        return attendanceDo;
    }
}
